package inits

import (
	"360/video-srv/basic/config"
	"github.com/elastic/go-elasticsearch/v7"
	"log"
)

func InitEs() {
	cfg := elasticsearch.Config{
		Addresses: []string{
			"http://14.103.140.236:9200",
		},
		// ...
	}
	config.Es, err = elasticsearch.NewClient(cfg)
	log.Println("es初始化成功")
}
